package entity

import "time"

// SimInfo sim info
type SimInfo struct {
	SimID      int64     `gorm:"primaryKey;column:sim_id;type:bigint;not null" json:"-"`
	MSISDN     string    `gorm:"column:MSISDN;type:char(13)" json:"mSISDN"`
	ICCID      string    `gorm:"column:ICCID;type:char(20)" json:"iCCId"`
	Open       string    `gorm:"column:open;type:char(12)" json:"open"`
	Activate   string    `gorm:"column:activate;type:char(12)" json:"activate"`
	OpenAt     time.Time `gorm:"column:open_at;type:datetime" json:"openAt"`
	ActivateAt time.Time `gorm:"column:activate_at;type:datetime" json:"activateAt"`
	CreatedAt  time.Time `gorm:"column:created_at;type:datetime" json:"createdAt"`
	UpdatedAt  time.Time `gorm:"column:updated_at;type:datetime" json:"updatedAt"`
}

// TableName get sql table name.获取数据库表名
func (m *SimInfo) TableName() string {
	return "sim_info"
}
